#include <bits/stdc++.h>
using namespace std;
int r[100005], n, cnt;
int read(){
	char c = getchar();
	while(c != '-' && !isdigit(c)) c = getchar();
	int ch = 1;
	if(c == '-'){
		ch = -1;
		c = getchar();
	}
	int h = 0;
	while(isdigit(c)){
		h = h * 10 + (int)(c - 48);
		c = getchar();
	}
	h *= ch;
	return h;
}
int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	freopen("duel.in", "r", stdin);
	freopen("duel.out", "w", stdout);
	n = read();
	for(int i = 1;i <= n;++i)
		r[i] = read();
	sort(r + 1, r + n + 1);
	int x = 1, y = 2;
	while(x <= n && y <= n){
		if(r[y] > r[x]){
			++cnt;
			++x;
		}
		++y;
	}
	cout << n - cnt << '\n';
	return 0;
}
